public class UserServiceImpl implements UserService{
    @Override
    public String login(String LoginName, String passwd) {
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        if(LoginName.equals("Admin") && passwd.equals("1234")){
            return "登录成功";
        }
        return "登录失败，请重试";
    }

    @Override
    public void selectUsers() {
        try {
            Thread.sleep(2000);
            System.out.println("查询用户为100");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }

    @Override
    public boolean deleteUsers() {

        try {
            Thread.sleep(2000);
            System.out.println("删除用户为5");
            return true;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return false;
    }
}
